<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title>edit</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <link rel="stylesheet" href="../../lib/layui-v2.6.3/css/layui.css" media="all">
    <link rel="stylesheet" href="../../css/public.css" media="all">
    <style>
        body {
            background-color: #ffffff;
        }
    </style>
</head>
<body>
<div class="layui-form layuimini-form">
    <div class="layui-form-item">
        <label class="layui-form-label required">设备编号</label>
        <div class="layui-input-block">
            <input type="text" name="username" lay-verify="required"  value="WBB01019" class="layui-input">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label required">设备名称</label>
        <div class="layui-input-block">
            <input type="text" name="username" lay-verify="required"  value="粮仓温度器" class="layui-input">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label required">设备型号</label>
        <div class="layui-input-block">
            <input type="text" name="username" lay-verify="required"  value="SWF-1-4.5" class="layui-input">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label required">所属系统</label>
        <div class="layui-input-block">
            <input type="text" name="username" lay-verify="required"  value="粮仓管理系统" class="layui-input">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label required">生产厂商</label>
        <div class="layui-input-block">
            <input type="text" name="username" lay-verify="required"  value="江西省绿品信息科技有限公司" class="layui-input">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label required">生产日期</label>
        <div class="layui-input-block">
            <input type="text" name="username" lay-verify="required"  value="2017.06.11" class="layui-input">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label required">供应商名称</label>
        <div class="layui-input-block">
            <input type="text" name="username" lay-verify="required"  value="江西省冉鑫设备有限公司" class="layui-input">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label required">供应商编号</label>
        <div class="layui-input-block">
            <input type="text" name="username" lay-verify="required"  value="GV045" class="layui-input">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label required">质保期</label>
        <div class="layui-input-block">
            <input type="text" name="username" lay-verify="required"  value="2年" class="layui-input">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label required">安装日期</label>
        <div class="layui-input-block">
            <input type="text" name="username" lay-verify="required"  value="2017.09.25" class="layui-input">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label required">安装区域</label>
        <div class="layui-input-block">
            <input type="text" name="username" lay-verify="required"  value="一号仓45" class="layui-input">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label required">安装楼层</label>
        <div class="layui-input-block">
            <input type="text" name="username" lay-verify="required"  value="B01" class="layui-input">
        </div>
    </div>

    <div class="layui-form-item">
        <div class="layui-input-block">
            <button class="layui-btn layui-btn-normal" lay-submit lay-filter="saveBtn">确认保存</button>
        </div>
    </div>
</div>
</div>
<script src="../../lib/layui-v2.6.3/layui.js" charset="utf-8"></script>
<script>
    layui.use(['form'], function () {
        var form = layui.form,
            layer = layui.layer,
            $ = layui.$;

        //监听提交
        form.on('submit(saveBtn)', function (data) {
            var iframeIndex = parent.layer.getFrameIndex(window.name);
                parent.layer.close(iframeIndex);

            return false;
        });

    });
</script>
</body>
</html>